package org.jeecg.modules.sistersophie.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: course_student_info
 * @Author: jeecg-boot
 * @Date:   2021-06-04
 * @Version: V1.0
 */
@Data
@TableName("course_student_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="course_student_info对象", description="course_student_info")
public class CourseStudentInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**课程ID*/
	@Excel(name = "课程ID", width = 15)
    @ApiModelProperty(value = "课程ID")
    private Integer courseId;
	/**学生ID*/
	@Excel(name = "学生ID", width = 15)
    @ApiModelProperty(value = "学生ID")
    private Integer studentId;
	/**学生状态 0=正常入学，1=插班入学*/
	@Excel(name = "学生状态 0=正常入学，1=插班入学", width = 15)
    @ApiModelProperty(value = "学生状态 0=正常入学，1=插班入学")
    private Integer studentStatus;
	/**付款状态 0=未付款，1=付款中，2=付款完成，3=付款失败,4=付款取消*/
	@Excel(name = "付款状态 0=未付款，1=付款中，2=付款完成，3=付款失败,4=付款取消", width = 15)
    @ApiModelProperty(value = "付款状态 0=未付款，1=付款中，2=付款完成，3=付款失败,4=付款取消")
    private Integer payStatus;
	/**付款时间*/
	@Excel(name = "付款时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "付款时间")
    private Date payTime;
	/**价格快照*/
	@Excel(name = "价格快照", width = 15)
    @ApiModelProperty(value = "价格快照")
    private BigDecimal price;

    @Excel(name = "实付金额", width = 15)
    @ApiModelProperty(value = "实付金额")
    private BigDecimal actualPrice;

	/**description*/
	@Excel(name = "description", width = 15)
    @ApiModelProperty(value = "description")
    private String description;
	/**删除标志 0=未删除，1=已删除*/
	@Excel(name = "删除标志 0=未删除，1=已删除", width = 15)
    @ApiModelProperty(value = "删除标志 0=未删除，1=已删除")
    private Integer isDelete;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String createName;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    private String updateName;
	/**通知ID*/
	@Excel(name = "通知ID", width = 15)
    @ApiModelProperty(value = "通知ID")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer invoiceId;
}
